-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support submit sleep in scheduler #6858
Conversation
54e980e
to
8049a74
Compare
By adding |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6858 +/- ##
==========================================
+ Coverage 84.33% 84.40% +0.07%
==========================================
Files 368 367 -1
Lines 21871 21871
Branches 911 900 -11
==========================================
+ Hits 18445 18461 +16
+ Misses 3132 3116 -16
Partials 294 294 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, very readable code!
There should be some tests for this togheter with MAX_RUNNING. I don't think combining these feature will currently give expected results. |
8b854cc
to
6330ecf
Compare
It needs rebasing. |
Notes: * The test setup possibly allows flakyness * Picks SUBMIT_SLEEP from queue system configuration, but leans towards a future global setting for SUBMIT_SLEEP.
fd06f65
to
57ffe2a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job @berland ! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Issue
Resolves #6856
Approach
Use a singleton object to be responsible for determining whether
Job
needs to wait more before it proceeds when doing its__call__
.Pre review checklist
Ground Rules),
and changes to existing code have good test coverage.
Pre merge checklist